<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>
<body>
    <div id="app">
        <h1 :study="study">{{msg}} </h1>

        <p :study="msg">{{study}} </p>

        <p :count="count">{{count}} </p>
        <p :count="count+3">{{count+4}} </p>

        <p :isHot = "isHot?'好冷':'好热'"> {{isHot?'好冷':'好热'}}</p>

        <img src="src" alt="">
        <img :src="'http://www.baidu.com/'+src" alt="">

    </div>
    <script>
        const vm = new Vue ({
            el:'#app',
            data(){
                return {
                    msg:'深夜敲代码',
                    study: '前端开发',
                    count: 3,
                    src: '01.jpg',
                    isHot: true
                }
            }
        })
    </script>
</body>
</html>